package com.javasm.adminapi.module.supplier.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.javasm.adminapi.module.supplier.dao.GgSupplierGoodsDao;
import com.javasm.adminapi.module.supplier.entity.GgSupplierGoods;
import com.javasm.adminapi.module.supplier.service.GgSupplierGoodsService;
import org.springframework.stereotype.Service;

/**
 * 商品管理-供应商与商品关系表(GgSupplierGoods)表服务实现类
 *
 * @author makejava
 * @since 2025-10-15 21:15:21
 */
@Service("ggSupplierGoodsService")
public class GgSupplierGoodsServiceImpl extends ServiceImpl<GgSupplierGoodsDao, GgSupplierGoods> implements GgSupplierGoodsService {

    @Override
    public void removeBySidAndGid(Integer sid, Integer gid) {
        LambdaQueryWrapper<GgSupplierGoods> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(GgSupplierGoods::getSid,sid);
        queryWrapper.eq(GgSupplierGoods::getGid,gid);
        remove(queryWrapper);
    }
}

